package com.msgserver.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

import org.hibernate.annotations.Cascade;
import org.hsqldb.lib.HashSet;

/**
 * Entity implementation class for Entity: Message
 *
 */
@Entity

public class Message extends VO implements Serializable {

	
	private static final long serialVersionUID = 1L;

	public Message() {
		super();
	}
   
	private MessageStatus status;
	private String text;
	private Integer numberOfReceivers;
 
	public MessageStatus getStatus() {
		return status;
	}
	public void setStatus(MessageStatus status) {
		this.status = status;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public Integer getNumberOfReceivers() {
		return numberOfReceivers;
	}
	public void setNumberOfReceivers(Integer numberOfReceivers) {
		this.numberOfReceivers = numberOfReceivers;
	}
	
	
}
